Developer Documentation

QuickTime 4 API Documentation

Programming With QuickTime VR

| Previous | Chapter Contents | Chapter Top | Next |

Node Header Atom Structure

A node header atom is a leaf atom that describes the type and ID of a node, as well as other information about the node. Its atom type is kQTVRNodeHeaderAtomType ( 'ndhd' ).

The structure of a node header atom is defined by the VRNodeHeaderAtom data type:

typedef struct VRNodeHeaderAtom {
    UInt16                              majorVersion;
    UInt16                              minorVersion;
    OSType                              nodeType;
    QTAtomID                            nodeID;
    QTAtomID                            nameAtomID;
    QTAtomID                            commentAtomID;
    UInt32                              reserved1;
    UInt32                              reserved2;
} VRNodeHeaderAtom, *VRNodeHeaderAtomPtr;
majorVersion
The major version number of the file format.
minorVersion
The minor version number of the file format.
nodeType
The node type. See "Node Types" in Chapter 2, "QuickTime VR Manager," for a description of the available node types. Currently, this field should contain either kQTVRPanoramaType or kQTVRObjectType .
nodeID
The node ID.
nameAtomID
The ID of the string atom that contains the name of the node. This atom should be a sibling of the node header atom. The value of this field is 0 if no name string atom exists.
commentAtomID
The ID of the string atom that contains a comment for the node. This atom should be a sibling of the node header atom. The value of this field is 0 if no comment string atom exists.
reserved1
Reserved. This field must be 0.
reserved2
Reserved. This field must be 0.

© 1998 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |